﻿using blog.Model.Dto;
using blog.Model.Vo;
using blog.Service;
using Furion.DynamicApiController;
using Microsoft.AspNetCore.Mvc;

namespace blog.web.Controllers.Back;

[ApiDescriptionSettings("后台", Tag = "权限")]
[Route("api/back/[controller]")]
public class GroupController : IDynamicApiController
{
    IGroupService _groupService;

    public GroupController(IGroupService groupService)
    {
        _groupService = groupService;
    }
    
    [Route("")]
    public async Task<AjaxResult> Get([FromQuery]ListModel param,[FromQuery]SearchKey key)
    {
        return await _groupService.Select(param,key);
    }
    
}